import React, { Component } from "react";
import { withRouter /*NavLink*/ } from "react-router-dom";
class View extends Component {
  render() {
    console.log(this.props);
    setTimeout(() => {
      this.props.history.push("/info");
    }, 3000);
    return (
      <div>
        <div className="header"></div>
        这是详情页面{this.props.id}
      </div>
    );
  }
}

export default withRouter(View);
